--- lib/sanitizer_common/sanitizer_platform_limits_posix.h
+++ lib/sanitizer_common/sanitizer_platform_limits_posix.h
@@ -507,7 +507,7 @@ namespace __sanitizer {
 
   typedef long long __sanitizer___kernel_loff_t;
   typedef struct {
-    unsigned long fds_bits[1024 / (8 * sizeof(long))];
+    unsigned long fds_bits[51200 / (8 * sizeof(long))];
   } __sanitizer___kernel_fd_set;
 #endif
 
